package org.atlantis.ymer.command;

import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.node.ObjectNode;

public class PingCommand extends JsonCommand {

	public static final PingCommand instance = new PingCommand();

	private PingCommand() {
	}

	@Override
	public CommandType getType() {
		return CommandType.PING;
	}

	@Override
	protected JsonNode toJson() {
		ObjectNode node = mapper.createObjectNode();
		node.put("type", CommandType.PING.getValue());
		return node;
	}
}
